<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<link rel="stylesheet" href="plug-in/ace2/assets/css/font-awesome.min.css" />
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="deviceList" checkbox="false" fitColumns="true" title="设备信息" actionUrl="deviceTypeController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="编号"  field="no"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="名称"  field="name"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="数量"  field="balance"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="单位"  field="unit"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="实验室"  field="lab.name"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="实验室id"  field="lab.id" hidden="true"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="所属项目"  field="teachItem.itemName"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="所属项目id"  field="teachItem.id" hidden="true"  queryMode="single"  width="120" query="false"></t:dgCol> 
   <t:dgCol title="位置"  field="location" hidden="true" queryMode="single"  width="100"></t:dgCol> 
   <t:dgCol title="状态"  field="state.name" hidden="true" queryMode="single"  width="60" align="center"></t:dgCol>
   <t:dgCol title="状态"  field="state.value" hidden="true" queryMode="single"  width="60" align="center"></t:dgCol>
   <t:dgCol title="所属管理员"  field="holder.realName" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="所属管理员"  field="holder.id" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="server"  field="server" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="用途"  field="useDesc" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="供应商"  field="provider" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="联系电话"  field="phone" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="备足"  field="remark" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="moneyFrom"  field="moneyFrom" hidden="true" queryMode="single"  width="80"></t:dgCol>
   <t:dgToolBar title="查看" icon="icon-search" url="deviceTypeController.do?goUpdate" funname="detail" width="900"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script>
 	function getSelected(){
 		var rows = $("#deviceList").datagrid('getSelections');
 		if(rows.length==0){
 			tip('请选择设备');
 			return;
 		}
 		return rows;
 	}
 </script>